<%@page import="entities.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
User user = (User) request.getAttribute("user_logged_in");
%>
		<section id="loginArea">
        	<div id="loginArea_inner" class="clearafter">
        		<div id="logo">
        			<a href="/"><img src="/images/logo.png" /></a>
        		</div>
                <ul class="clearafter">
                	<% if (user == null) { %>
                    <li><a href="/login">Sign in</a></li>
                    <li><a href="/register">Register</a></li>
                    <% } else { %>
                    <li><a href="/profile"><%=user.getName() %></a></li>
                    <li><a href="/logout">Logout</a></li>
                    <% } %>
                </ul>
            </div>
        </section>